home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 144_01 / sum.hlp < prev    next >
Text File  |  1985-08-19  |  2KB  |  45 lines

  1. **********************************************************************
  2. *                               SUM                                  *
  3. **********************************************************************
  4. *                  COPYRIGHT 1983 EUGENE H. MALLORY                  *
  5. **********************************************************************
  6. PROGRAM:
  7.       SUM   - Sums a given field in a set of lines.
  8. USAGE:
  9.       SUM   [<fid] [-Fn] [-Cn] [-H] [>fid]
  10. FUNCTION:
  11.     This gets each line and sums the specified field.
  12.     
  13.     The -Fn option may specify the n'th numeric field
  14.     in the line.  The default is field 1.
  15.     
  16.     The -Cn may specify the first column to begin the search.
  17.     The default is column 1.
  18.     
  19.     A numeric field is a string of one or more decimal digits
  20.     which may pe preceded by a minus sign.  Numeric fields are
  21.     seperate# by any non-numeric character.
  22.     Lines with no numbers or too short will be skipped.
  23.     
  24.     The -H option displays the available options.
  25.     
  26. EXAMPLE:
  27.     SUM <NUMBERS -C8 -F2    {Sums the second numeric field 
  28.                 following column 8.}
  29.  
  30.         Command Line                       
  31.  
  32. ___________________________________  
  33.                                   |  
  34.                                   |  
  35.                                   |  OPTIONS
  36.                                   |  
  37.                                   |                  
  38.                     ______________V______________    
  39.  Standard Input     |                           |   Standard Output
  40.      TEXT           |                           |        SUM
  41. ------------------->|            SUM            |----------------------->
  42.                     |                           |
  43.                     |                           |
  44.                     |___________________________|
  45.